package com.basic.thread;

public class ConsumThread implements Runnable {

	ProductConsum action = null;

	ConsumThread() {

	}

	ConsumThread(ProductConsum action) {
		this.action = action;
	}

	@Override
	public void run() {
		while (true) {
			if (action != null) {
				action.Consum();
			}
		}
	}

}
